// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 获取部门列表  */
export async function getGroupList() {
  return request('/api/v1/group/getGroupList', {
    method: 'GET',
  });
}

/** 修改部门  */
export async function updateGroup(params: any) {
  return request('/api/v1/group/updateGroup', {
    method: 'POST',
    data: params,
  });
}

/** 新建部门 */
export async function createGroup(params: any) {
  return request('/api/v1/group/createGroup', {
    method: 'POST',
    params: params,
  });
}

/** 删除部门  */
export async function deleteGroupById(params: any) {
  return request('/api/v1/group/deleteGroupById', {
    method: 'POST',
    params: params,
  });
}
